package com.ssy.lingxi.member.merchant.api.fallback.inner;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.member.merchant.api.feign.inner.MobileMemberSalesFeign;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberSalesFindUserIdVO;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberSalesReportOrderCountFeignVO;
import com.ssy.lingxi.member.merchant.api.model.vo.inner.response.MemberSalesFeignPageQueryVO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * 业务员小程序业绩统计查询内部Feign接口Fallback类
 * @author 郑小翠
 * @version 2.02.18
 * @date 2022-03-24
 */
@Component
public class MobileMemberSalesFeignFallback implements MobileMemberSalesFeign {

    /**
     * 根据用户Id查找下级会员
     * @param pageVO 查询条件
     * @return 返回业务员的下级会员
     */
    @Override
    public Wrapper<PageData<MemberSalesFeignPageQueryVO>> getSalesList(@RequestBody @Valid MemberSalesFindUserIdVO pageVO) {
        throw new BusinessException(ResponseCode.SERVICE_MERCHANT_MEMBER_ERROR);
    }
}
